const util = require('util');
const child_process = require('child_process');
const exec = util.promisify(child_process.exec);

console.log({ exec })

exec('node -v', (error, stdout, stderr) => {
	console.log('命令1',{error, stdout, stderr});
});

// exec('set path=E:\\Dev\\ffmpeg-20181015-c27c7b4-win64-static\\bin;%path%', (error, stdout, stderr) => {
//   console.log('命令2',{error, stdout, stderr});
// });

// exec('ffmpeg -version', (error, stdout, stderr) => {
//  console.log('命令3',{error, stdout, stderr});
// });